package com.chinasofti.manager.domain;

import java.util.Scanner;

public class Demo11 {
    public static void main(String[] args) {
//        Scanner in = new Scanner(System.in);
//        System.out.println("请输入手机号码");
//        String phone = in.next();
        String phone = "15567142008";
        String telPhone = phone.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2");
        System.out.println(telPhone);
    }

}
